package com.atguigu.springcloud.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author Kevin
 * @Date 2021-04-06 20:27:08
 */
@Configuration
public class ApplicationContextConfig {
    @Bean
//    @LoadBalanced/*不使用默认的，自己写一个轮询算法，实现注销*/
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
